svm: support VMCB cleanbits
authorKeir Fraser <keir@xen.org>
Wed, 15 Dec 2010 16:34:11 +0000 (16:34 +0000)
committerKeir Fraser <keir@xen.org>
Wed, 15 Dec 2010 16:34:11 +0000 (16:34 +0000)
commitb5b30386b4a30cbea90a623c5c94ce619e8b6b88
tree8f892842108db70a0f3e570bb236510126325f54
parent99b2c7638276d88b45839a22a77d94c35a5472a1
svm: support VMCB cleanbits

Attached patch implements the VMCB cleanbits SVM feature.
Upcoming AMD CPUs introduce them and they are basically hints
for the CPU which vmcb values can be re-used from the previous
VMRUN instruction.

Each bit represents a certain set of fields in the VMCB.
Setting a bit tells the cpu it can re-use the cached value
from the previous VMRUN.
Clearing a bit tells the cpu to reload the values from the given VMCB.

Signed-off-by: Wei Huang <Wei.Huang2@amd.com>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/svm/asid.c
xen/arch/x86/hvm/svm/emulate.c
xen/arch/x86/hvm/svm/intr.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/svm/vmcb.c
xen/include/asm-x86/hvm/svm/svm.h
xen/include/asm-x86/hvm/svm/vmcb.h